<script setup lang="ts">
import { useUserStore } from './stores/user'

const store = useUserStore()
</script>

<template>
  <div class="app-page">
    <div>用户信息: {{ store.user }}</div>
    <button
      @click="
        store.setUser({
          id: '1',
          token: '2',
          account: '3',
          mobile: '4',
          avatar: '5'
        })
      "
    >
      存用户信息
    </button>
    <button @click="store.delUser()">删用户信息</button>
  </div>
</template>

<style lang="scss" scoped></style>
